home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
qlib205.zip
/
QLIB.ZIP
/
SRC
/
MATH
/
MATH_WC.ASM
< prev
Wrap
Assembly Source File
|
1997-03-22
|
520b
|
33 lines
; Math Library to be used in C programs (WATCOM)
; results are returned in CPU regs
include qlib.inc
include math.inc
include string.inc
include errno.inc
.data
_WC_ equ 1
_math_typ db 1
include math_com.asm
include ftoa.asm
.code
;this was stripped out of WATCOM Libs
_CHP proc ;chop!!!
push eax
fstcw wptr[esp]
fwait
push dptr[esp]
mov byte ptr [esp+1],1fH
fldcw wptr[esp]
frndint
fldcw wptr[esp+4]
fwait
add esp,8
ret
_CHP endp
end